package com.cj.mobile.iabp.mvp.ui.adapter;

import android.view.View;

import com.cj.mobile.iabp.R;
import com.cj.mobile.iabp.mvp.ui.holder.SelectTitleCommHolder;
import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * 包名： com.zqw.mobile.aptitude.mvp.ui.adapter
 * 对象名： SelectTitleCommonAdapter
 * 描述：通用选择
 * 作者： wly
 * 邮箱：wangliyang206@163.com
 * 创建日期： 2020/9/7 17:40
 */

public class SelectTitleCommonAdapter extends DefaultAdapter<String> {
    public SelectTitleCommonAdapter(List<String> infos) {
        super(infos);
    }

    @NotNull
    @Override
    public BaseHolder<String> getHolder(View v, int viewType) {
        return new SelectTitleCommHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.select_titlecomm_item_layout;
    }
}
